package com.ybt.communicate.tcp.configration;

import com.ybt.communicate.core.configration.IProtocolConfig;

public class TCPProtocolConfig implements IProtocolConfig<TCPBaseConfig> {
    private String protocolId;
    private String protocolType;
    private String protocolMode;
    private String IODirection;
    private boolean serverSide;
    private TCPBaseConfig commonConfig;
    
    
    public TCPProtocolConfig(){
    }
    public TCPProtocolConfig(String protocolType){
        this.protocolType = protocolType;
    }
    public String getProtocolId() {
        // TODO Auto-generated method stub
        return protocolId;
    }

    public String getProtocolType() {
        // TODO Auto-generated method stub
        return protocolType;
    }

    public String getProtocolMode() {
        // TODO Auto-generated method stub
        return protocolMode;
    }

    public void setProtocolMode(String mode) {
        // TODO Auto-generated method stub
        this.protocolMode = mode;
    }

    public String getIODirection() {
        return IODirection;
    }

    public void setIODirection(String direction) {
        IODirection = direction;
    }

    public boolean isServerSide() {
        return serverSide;
    }

    public void setServerSide(boolean serverSide) {
        this.serverSide = serverSide;
    }

    public TCPBaseConfig getCommonConfig() {
        // TODO Auto-generated method stub
        return commonConfig;
    }
    public void setProtocolId(String protocolId) {
        // TODO Auto-generated method stub
        this.protocolId = protocolId;
    }

    public void setProtocolType(String protocolType) {
        // TODO Auto-generated method stub
        this.protocolType = protocolType;
    }

    public void setCommonConfig(TCPBaseConfig commonConfig) {
        // TODO Auto-generated method stub
        this.commonConfig = commonConfig;
    }
}
